package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;

/**
 * <p>
 * hr_personal_contract 人事合同
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("hr_personal_contract")
public class HrPersonalContract extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 合同ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 档案ID
     */
	@TableField("personal_id")
	private Integer personalId;
    /**
     * 合同编号
     */
	@TableField("contract_number")
	private String contractNumber;
    /**
     * 合同类型
     */
	@TableField("contract_type")
	private Integer contractType;
    /**
     * 合同期限
     */
	private Integer period;
    /**
     * 生效日期
     */
	@TableField("effective_time")
	private Date effectiveTime;
    /**
     * 失效日期
     */
	@TableField("uneffective_time")
	private Date uneffectiveTime;
    /**
     * 备注
     */
	private String remarks;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPersonalId() {
		return personalId;
	}

	public void setPersonalId(Integer personalId) {
		this.personalId = personalId;
	}

	public String getContractNumber() {
		return contractNumber;
	}

	public void setContractNumber(String contractNumber) {
		this.contractNumber = contractNumber;
	}

	public Integer getContractType() {
		return contractType;
	}

	public void setContractType(Integer contractType) {
		this.contractType = contractType;
	}

	public Integer getPeriod() {
		return period;
	}

	public void setPeriod(Integer period) {
		this.period = period;
	}

	public Date getEffectiveTime() {
		return effectiveTime;
	}

	public void setEffectiveTime(Date effectiveTime) {
		this.effectiveTime = effectiveTime;
	}

	public Date getUneffectiveTime() {
		return uneffectiveTime;
	}

	public void setUneffectiveTime(Date uneffectiveTime) {
		this.uneffectiveTime = uneffectiveTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	@Override
	protected Serializable pkVal() {
		return id;
	}
	@Override
	public String toString() {
		return "HrPersonalContract{" +
			"id=" + id +
			", personalId=" + personalId +
			", contractNumber=" + contractNumber +
			", contractType=" + contractType +
			", period=" + period +
			", effectiveTime=" + effectiveTime +
			", uneffectiveTime=" + uneffectiveTime +
			", remarks=" + remarks +
			"}";
	}
}
